Interactive COVID-19 Visualization of United States
Awesome summary
- Maps of the states showing case number
- Chloropleths showing Deaths 2020 and 2021
- Line graph showing confirmed cases by Region
- Stacked bar chart of deaths by region 2020 and 2021
- Heatmap showing death toll by State 2020 and 2021
# map1= alt.Chart(states).mark_geoshape(
# fill='#e8e4f3', stroke='black', strokeWidth=1
# ).project(
# type='albersUsa'
# ).properties(
# width=1000,
# height=650
# )
# # click = alt.selection_single(fields=['State'], bind='legend')
# covid21= alt.Chart(bigframe21).mark_circle().transform_filter(
# {'not': alt.FieldEqualPredicate(field='region', equal="Not a region")}
# ).encode(
# longitude='Long_:Q',
# latitude='Lat:Q',
# color=alt.Color('region:N', scale=alt.Scale(scheme='viridis')),
# size=alt.Size('Confirmed',
# scale=alt.Scale(range=[100, 3000]),
# legend=None
# ),
# tooltip=['State:N','Confirmed:Q','Deaths:Q'],
# ).properties(width=1000,height=650,title='Confirmed Cases 2021')
# covid20= alt.Chart(bigframe20).mark_circle().transform_filter(
# {'not': alt.FieldEqualPredicate(field='region', equal="Not a region")}
# ).encode(
# longitude='Long_:Q',
# latitude='Lat:Q',
# color=alt.Color('region:N', scale=alt.Scale(scheme='viridis')),
# size=alt.Size('Confirmed',
# scale=alt.Scale(range=[100, 3000]),
# legend=None
# ),
# tooltip=['State:N','Confirmed:Q','Deaths:Q'],
# ).properties(width=1000,height=650,title='Confirmed Cases 2020')
# map21 = (map1 + covid21)
# map20 = (map1 + covid20)